package com.naiterui.ehp.bs.emr.entity.mysql;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 病历模板
 *
 * @author yingsu
 * @date 2018/11/20 10:36
 * @since 3.5.0
 */
@Entity
@Table(name = "emr_record_template")
public class EmrRecordTemplate implements Serializable {

    private static final long serialVersionUID = -8757831136901459771L;

    /**
     * 通用模板
     */
    public static final int TYPE_COMMON = 1;
    /**
     * 肝病模板
     */
    public static final int TYPE_HEPATOPATHY = 2;
    /**
     * 量表模板
     */
    public static final int TYPE_SCALE = 3;

    /**
     * 主键
     */
    private Long id;
    /**
     * 模板类型
     */
    private Integer type;
    /**
     * 模板名称
     */
    private String name;
    /**
     * 模板提供机构
     */
    private String institutions;
    /**
     * 金数据地址url
     */
    private String scaleUrl;
    /**
     * 表单id
     */
    private String formId;


    /**
     * 排序
     */
    private Integer sort;

    @Id
    @Column(name = "id", unique = true, nullable = false)
    @GeneratedValue(strategy = IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "institutions")
    public String getInstitutions() {
        return institutions;
    }

    public void setInstitutions(String institutions) {
        this.institutions = institutions;
    }

    @Column(name = "scale_url")
    public String getScaleUrl() {
        return scaleUrl;
    }

    public void setScaleUrl(String scaleUrl) {
        this.scaleUrl = scaleUrl;
    }

    @Column(name = "form_id")
    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    @Column(name = "sort")
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
